﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Collections.Specialized;

namespace ETL.Config
{
	public static class ConfigInfo
	{

		public static FTPURLCollection ConfiguredFTPs 
		{
			get 
			{
				try
				{
					object o = System.Configuration.ConfigurationManager.GetSection("ETLConfig/FTPConfig");
					return ((FTPConfigSection)o).FTPURLS;
				}
				catch
				{
					return null;
				}
			}
		}

		public static ExcelFilesCollection ExcelFiles 
		{
			get
			{
				try
				{
					object o = System.Configuration.ConfigurationManager.GetSection("ETLConfig/ExcelFilesConfig");
					return ((ExcelFilesConfigSection)o).ExcelFiles;
				}
				catch
				{
					return null;
				}
			}
		}

	}
}
